package com.windward.vii.web.controller;

import com.windward.vii.common.JsonResult;
import com.windward.vii.service.AppBannerService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * Created by tiansj on 2017/8/26.
 */
@Controller
public class AppBannerController {

    @Resource
    AppBannerService appBannerService;

    @RequestMapping(value = "v1/api0/banner/list/recommend", method = RequestMethod.GET)
    @ResponseBody
    public JsonResult getRecommendBanner() {
        JsonResult jsonResult = JsonResult.success();
        jsonResult.setBody(appBannerService.getRecommendBanner());
        return  jsonResult;
    }

}
